package s15.ch18.ex3;

import s15.ch18.ex3.MyThread;
import s15.ch18.ex3.MyClass;

public class MyUnsynchronizedObject {

	public static void main(String[] args) throws InterruptedException {

		MyClass myClass = new MyClass(10);
		MyThread myThread1 = new MyThread("MyA", myClass);
		myThread1.start();
		Thread.sleep(25);
		MyThread myThread2 = new MyThread("MyB", myClass);
		myThread2.start();
		
//		myThread1.notify();
//		myThread1.wait();
//		myThread1.getThread().join();
//		myThread1.getThread().interrupt();
//		myThread1.getThread().yield();
	}

}
